package jsyf.oa.entity.report.intentCustomer;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2018/4/5.
 */
@Entity
@Table(name = "T_WRT_CUSTOMER", schema = "oa", catalog = "")
public class ReportCustomerEntity extends BaseEntity implements Serializable {

   /* private String id;*/
    private String name;
    private String tel;
    private String customerType;
    private String customerCredit;
    private String birthday;
    private String wechat;
    private String idCard;
    private String provinceName;
    private String cityName;
    private String countyName;
    private String source;
    private String intentionModel;
    private String buyType;
    private String buyDate;
    private String otherCondition;
    private Date createTime;
    private String createUserId;
    private Date updateTime;
    private String updateUserId;
    private String throwReason;
    private int intentionFlag;
    private Date intentionTime;
    private String chance;
    private String businessDate;

    private String buildProvinceName;
    private String buildCityName;
    private String buildCountyName;
    private String buildProvinceId;
    private String buildCityId;
    private String buildCountyId;
    private String fundCondition;
    private String existingDevice;


    public String getChance() {
        return chance;
    }

    public void setChance(String chance) {
        this.chance = chance;
    }

    public String getBusinessDate() {
        return businessDate;
    }

    public void setBusinessDate(String businessDate) {
        this.businessDate = businessDate;
    }

    public String getExistingDevice() {
        return existingDevice;
    }

    public void setExistingDevice(String existingDevice) {
        this.existingDevice = existingDevice;
    }


    public String getThrowReason() {
        return throwReason;
    }

    public void setThrowReason(String throwReason) {
        this.throwReason = throwReason;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBuildProvinceName() {
        return buildProvinceName;
    }

    public void setBuildProvinceName(String buildProvinceName) {
        this.buildProvinceName = buildProvinceName;
    }

    public String getBuildCityName() {
        return buildCityName;
    }

    public void setBuildCityName(String buildCityName) {
        this.buildCityName = buildCityName;
    }

    public String getBuildCountyName() {
        return buildCountyName;
    }

    public void setBuildCountyName(String buildCountyName) {
        this.buildCountyName = buildCountyName;
    }

    public String getBuildProvinceId() {
        return buildProvinceId;
    }

    public void setBuildProvinceId(String buildProvinceId) {
        this.buildProvinceId = buildProvinceId;
    }

    public String getBuildCityId() {
        return buildCityId;
    }

    public void setBuildCityId(String buildCityId) {
        this.buildCityId = buildCityId;
    }

    public String getBuildCountyId() {
        return buildCountyId;
    }

    public void setBuildCountyId(String buildCountyId) {
        this.buildCountyId = buildCountyId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getIntentionModel() {
        return intentionModel;
    }

    public void setIntentionModel(String intentionModel) {
        this.intentionModel = intentionModel;
    }

    public String getBuyType() {
        return buyType;
    }

    public void setBuyType(String buyType) {
        this.buyType = buyType;
    }

    public String getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(String buyDate) {
        this.buyDate = buyDate;
    }

    public String getFundCondition() {
        return fundCondition;
    }

    public void setFundCondition(String fundCondition) {
        this.fundCondition = fundCondition;
    }

    public String getOtherCondition() {
        return otherCondition;
    }

    public void setOtherCondition(String otherCondition) {
        this.otherCondition = otherCondition;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getCustomerType() {
        return customerType;
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public String getCustomerCredit() {
        return customerCredit;
    }

    public void setCustomerCredit(String customerCredit) {
        this.customerCredit = customerCredit;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public int getIntentionFlag() {
        return intentionFlag;
    }

    public void setIntentionFlag(int intentionFlag) {
        this.intentionFlag = intentionFlag;
    }

    public Date getIntentionTime() {
        return intentionTime;
    }

    public void setIntentionTime(Date intentionTime) {
        this.intentionTime = intentionTime;
    }

    @Override
    public String getViewName() {
        return super.getViewName();
    }

    @Override
    public String getTableName() {
        return "T_WRT_CUSTOMER";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("TEL", "tel");
        obj.put("NAME", "name");
        obj.put("CUSTOMER_TYPE","customerType");
        obj.put("CUSTOMER_CREDIT","customerCredit");
        obj.put("WECHAT", "wechat");
        obj.put("BIRTHDAY", "birthday");
        obj.put("ID_CARD", "idCard");
        obj.put("PROVINCE_NAME", "provinceName");
        obj.put("CITY_NAME", "CITY_NAME");
        obj.put("COUNTY_NAME", "COUNTY_NAME");
        obj.put("SOURCE", "source");
        obj.put("INTENTION_MODEL", "intentionModel");
        obj.put("BUY_TYPE", "buyType");
        obj.put("BUY_DATE", "buyDate");
        obj.put("BUILD_PROVINCE_NAME", "buildProvinceName");
        obj.put("BUILD_CITY_NAME", "buildCityName");
        obj.put("BUILD_COUNTY_NAME", "buildCountyName");
        obj.put("BUILD_PROVINCE_ID", "buildProvinceId");
        obj.put("BUILD_CITY_ID", "buildCityId");
        obj.put("BUILD_COUNTY_ID", "buildCountyId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("FUND_CONDITION", "fundCondition");
        obj.put("OTHER_CONDITION", "otherCondition");
        obj.put("EXISTING_DEVICE", "existingDevice");
        obj.put("THROW_REASON", "throwReason");
        obj.put("INTENTION_FLAG", "intentionFlag");
        obj.put("INTENTION_TIME", "intentionTime");
        obj.put("CHANCE", "chance");
        obj.put("BUSINESS_DATE", "businessDate");
        return obj;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("TEL", getTel());
        obj.put("NAME", getName());
        obj.put("CUSTOMER_TYPE", getCustomerType());
        obj.put("CUSTOMER_CREDIT", getCustomerCredit());
        obj.put("WECHAT", getWechat());
        obj.put("BIRTHDAY", getBirthday());
        obj.put("ID_CARD", getIdCard());
        obj.put("PROVINCE_NAME", getProvinceName());
        obj.put("CITY_NAME", getCityName());
        obj.put("COUNTY_NAME",getCountyName());
        obj.put("SOURCE", getSource());
        obj.put("INTENTION_MODEL", getIntentionModel());
        obj.put("BUY_TYPE", getBuyType());
        obj.put("BUY_DATE", getBuyDate());
        obj.put("BUILD_PROVINCE_NAME", getBuildCountyName());
        obj.put("BUILD_CITY_NAME", getBuildCityName());
        obj.put("BUILD_COUNTY_NAME", getBuildCountyName());
        obj.put("BUILD_PROVINCE_ID", getBuildProvinceId());
        obj.put("BUILD_CITY_ID", getBuildCityId());
        obj.put("BUILD_COUNTY_ID", getBuildCountyId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("FUND_CONDITION", getFundCondition());
        obj.put("OTHER_CONDITION", getOtherCondition());
        obj.put("EXISTING_DEVICE", getExistingDevice());
        obj.put("THROW_REASON", getThrowReason());
        obj.put("INTENTION_FLAG", getIntentionFlag());
        obj.put("INTENTION_TIME", getIntentionTime());
        obj.put("BUSINESS_DATE", getBusinessDate());
        obj.put("CHANCE", getChance());
        return obj;
    }

    public JSONObject getJSONObjectId() {
        JSONObject obj = new JSONObject();

        obj.put("id", getId());

        return obj;
    }

}